﻿<%@ Page Theme="BlueSkin" Title="LMS : Support Control" Language="C#" MasterPageFile="~/LmsWebSite/MasterEN.master" AutoEventWireup="true" CodeFile="SupportControlEN.aspx.cs" Inherits="SupportControlEN" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="up1" runat="server" >
    <ContentTemplate>
        <asp:UpdateProgress ID="uprogress1" runat="server">
            <ProgressTemplate>
            
                <div style="position:fixed;width:30px;height:30px;top:0px;right:0px;border:1px solid orange;">
                    <img src="images/loading.gif" style="width:30px;height:30px;"  alt='Loading' title='Loading'/>
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    
        
<table cellspacing="5" cellpadding="5" width="100%">
        <tr>
            <td align="left" class="heading">
               Support Control
            </td>
        </tr>
    </table>
    <br />
    
    <div class="aligning allWidthWithMargins  direction" style="margin-bottom:20px;margin-left:30px;margin-right:30px;font-size:14px;">
        
         <div class="floating direction aligning" style="width:80px;">
             <asp:Label ID="lblSearch" runat="server" Text="Search"></asp:Label>
         </div>

         <div class="floating direction aligning" style="width:300px;">
            <asp:TextBox ID="txtSearch" runat="server" Width="300px"></asp:TextBox>
           
        </div>
        <div class="floating" style="font-size:1px;width:11px;height:1px;"></div>
        <div class="floating direction aligning" style="width:100px;">
            <asp:Button ID="btnSearch" runat="server" Text="Search" 
                onclick="btnSearch_Click" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
        
        </div>
            
        
        
        <div class="clearing" style="height:10px;"></div>



        <div class="floating direction aligning" style="width:80px;">
             <asp:Label ID="lblStatus" runat="server" Text="Status "></asp:Label>
         </div>

         <div class="floating direction aligning" style="width:300px;">
             <asp:DropDownList ID="ddlStatus" runat="server" Width="200px" 
                 AutoPostBack="True" onselectedindexchanged="ddlStatus_SelectedIndexChanged">
             </asp:DropDownList>
           
        </div>
        


        <div class="clearing" style="height:10px;"></div>
    

        <div class=" aligning direction allWidthWithMargins">

            <asp:GridView ID="grdRequests" runat="server" AutoGenerateColumns="False"
             AllowPaging="True" Font-Size="12px" EnableModelValidation="True" 
                onpageindexchanging="grdRequests_PageIndexChanging" 
                onrowdatabound="grdRequests_RowDataBound" DataKeyNames="TicketID" 
                onrowcommand="grdRequests_RowCommand" Width="840px" SkinID="grdSmallFont">

                <HeaderStyle Font-Size="12px" HorizontalAlign="Center" />
                
                <RowStyle HorizontalAlign="Center" />


                <Columns>
                    <asp:TemplateField HeaderStyle-CssClass="gridRowStyle" ItemStyle-CssClass="gridRowStyle">
                        
                        <HeaderTemplate>
                            <asp:LinkButton ID="lnkTicketID" CommandName="SortCommand" CommandArgument="TicketID" runat="server" ForeColor="White">Ticket ID</asp:LinkButton>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                            <asp:Label ID="lblTicketID" runat="server" Text='<%# Eval("TicketID") %>'></asp:Label>
                        </ItemTemplate>
                    
                        <HeaderStyle CssClass="gridRowStyle" />
                        <ItemStyle CssClass="gridRowStyle" />
                    
                    </asp:TemplateField>



                     <asp:TemplateField>
                        
                        <HeaderTemplate>
                            <asp:LinkButton ID="lnkBadge" CommandName="SortCommand" CommandArgument="Badge" runat="server" ForeColor="White">Badge #</asp:LinkButton>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                            <asp:Label ID="lblBadge" runat="server" Text='<%# Eval("Badge") %>'></asp:Label>
                        </ItemTemplate>
                    
                    </asp:TemplateField>


                    <asp:TemplateField>
                        
                        <HeaderTemplate>
                            <asp:LinkButton ID="lnkPersonNameEN" CommandName="SortCommand" CommandArgument="PersonNameEN" runat="server" ForeColor="White">Full Name</asp:LinkButton>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                            <asp:Label ID="lblPersonNameEN" runat="server" Text='<%# Eval("PersonNameEN") %>'></asp:Label>
                        </ItemTemplate>
                    
                    </asp:TemplateField>


                    <asp:TemplateField>
                        
                        <HeaderTemplate>
                            <asp:LinkButton ID="lnkRequestTypeEN" CommandName="SortCommand" CommandArgument="RequestTypeEN" runat="server" ForeColor="White">Request type</asp:LinkButton>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                            <asp:Label ID="lblRequestTypeEN" runat="server" Text='<%# Eval("RequestTypeEN") %>'></asp:Label>
                        </ItemTemplate>
                    
                    </asp:TemplateField>


                     <asp:TemplateField>
                        
                        <HeaderTemplate>
                            <asp:LinkButton ID="lnkDetails" CommandName="SortCommand" CommandArgument="Details" runat="server" ForeColor="White">Details</asp:LinkButton>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                            <asp:TextBox ID="lblDetails" runat="server" Text='<%# Eval("Details") %>' TextMode="MultiLine" Width="100px" Height="50px" ReadOnly="true"></asp:TextBox>
                        </ItemTemplate>
                    
                    </asp:TemplateField>



                    <asp:TemplateField>
                        
                        <HeaderTemplate>
                            <asp:LinkButton ID="lnkStatusEN" CommandName="SortCommand" CommandArgument="StatusEN" runat="server" ForeColor="White">Status</asp:LinkButton>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                            <asp:Label ID="lblStatusEN" runat="server" Text='<%# Eval("StatusEN") %>'></asp:Label>
                        </ItemTemplate>
                    
                    </asp:TemplateField>



                     <asp:TemplateField>
                        
                        <HeaderTemplate>
                            <asp:LinkButton ID="lnkAssignedToEN" CommandName="SortCommand" CommandArgument="AssignedToEN" runat="server" ForeColor="White">Assigned to</asp:LinkButton>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                            <asp:Label ID="lblAssignedToEN" runat="server" Text='<%# Eval("AssignedToEN") %>'></asp:Label>
                        </ItemTemplate>
                    
                    </asp:TemplateField>


                    <asp:TemplateField>
                        
                        <HeaderTemplate>
                            <asp:LinkButton ID="lnkPriorityEN" CommandName="SortCommand" CommandArgument="PriorityEN" runat="server" ForeColor="White">Priority</asp:LinkButton>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                            <asp:Label ID="lblPriorityEN" runat="server" Text='<%# Eval("PriorityEN") %>'></asp:Label>
                        </ItemTemplate>
                    
                    </asp:TemplateField>


                    <asp:TemplateField>
                        
                        <HeaderTemplate>
                            <asp:LinkButton ID="lnkCreateTime" CommandName="SortCommand" CommandArgument="CreateTime" runat="server" ForeColor="White">Create time</asp:LinkButton>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                            <asp:Label ID="lblCreateTime" runat="server" Text='<%# Eval("CreateTime","{0:dd/MM/yyyy<br />HH:mm}") %>'></asp:Label>
                        </ItemTemplate>
                    
                    </asp:TemplateField>


                    <asp:TemplateField>
                        
                        <HeaderTemplate>
                            <asp:LinkButton ID="lnkModifyTime" CommandName="SortCommand" CommandArgument="ModifyTime" runat="server" ForeColor="White">Last modified</asp:LinkButton>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                            <asp:Label ID="lblModifyTime" runat="server" Text='<%# Eval("ModifyTime","{0:dd/MM/yyyy<br />HH:mm}") %>'></asp:Label>
                        </ItemTemplate>
                    
                    </asp:TemplateField>

                    <asp:TemplateField>
                        
                        <HeaderTemplate>
                            <asp:LinkButton ID="lnkNote" CommandName="SortCommand" CommandArgument="Note" runat="server" ForeColor="White">Note</asp:LinkButton>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                            <asp:Label ID="lblNote" runat="server" Text='<%# Eval("Note") %>'></asp:Label>
                        </ItemTemplate>
                    
                    </asp:TemplateField>


                    <asp:TemplateField>
                        
                        <HeaderTemplate>
                            <asp:LinkButton ID="lnkAreaEN" CommandName="SortCommand" CommandArgument="AreaEN" runat="server" ForeColor="White">Operating area</asp:LinkButton>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                            <asp:Label ID="lblAreaEN" runat="server" Text='<%# Eval("AreaEN") %>'></asp:Label>
                        </ItemTemplate>
                    
                    </asp:TemplateField>


                    <asp:TemplateField>
                        
                        <HeaderTemplate>
                            <asp:Label ID="lblAction" runat="server" Text="Action"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                                
                                <asp:LinkButton ID="lnkAssign" runat="server" CommandName="Assign" CommandArgument='<%# Container.DataItemIndex %>'>Assign</asp:LinkButton>
                            
                                 
                                <br />
                                
                                <asp:HyperLink ID="hlView" runat="server" NavigateUrl='<%# "./EditRequestEN.aspx?ID=" + Eval("TicketID")%>'>View</asp:HyperLink>
                            
                            
                            
                        </ItemTemplate>
                    
                    </asp:TemplateField>

                </Columns>

            </asp:GridView>

        </div>


        <div class="clearing"></div>
    </div>

    </ContentTemplate>
    </asp:UpdatePanel>

</asp:Content>

